import App from "./App.vue";
import pinia from "./common/pinias/pinia";
import "./style.css";
// markdown编辑器
import VMdEditor from "@kangc/v-md-editor/lib/codemirror-editor";
import "@kangc/v-md-editor/lib/style/codemirror-editor.css";
import githubTheme from "@kangc/v-md-editor/lib/theme/github.js";
import "@kangc/v-md-editor/lib/theme/style/github.css";
// codemirror 编辑器的相关资源
import Codemirror from "codemirror";
// placeholder
import "codemirror/addon/display/placeholder";
// edit
import "codemirror/addon/edit/closebrackets";
import "codemirror/addon/edit/closetag";
import "codemirror/addon/edit/matchbrackets";
// scrollbar
import "codemirror/addon/scroll/simplescrollbars";
import "codemirror/addon/scroll/simplescrollbars.css";
// active-line
import "codemirror/addon/selection/active-line";
// style
import "codemirror/lib/codemirror.css";
import "codemirror/mode/css/css";
import "codemirror/mode/htmlmixed/htmlmixed";
import "codemirror/mode/javascript/javascript";
// mode
import "codemirror/mode/markdown/markdown";
import "codemirror/mode/vue/vue";
// highlightjs
import hljs from "highlight.js";
import naive from "naive-ui";
import { createApp } from "vue";

// import { Mind } from "vue3-jsmind";

VMdEditor.Codemirror = Codemirror;
VMdEditor.use(githubTheme, {
  Hljs: hljs,
});
const app = createApp(App);
// app.use(pinia).use(naive).component("jsMind", Mind).mount("#app");
app.use(pinia).use(naive).mount("#app");
app.use(VMdEditor);
